import { http } from '@/utils/request.js'

// 获取学生毕设作品信息
export const workDetailService = () => {
	return http({
		url: '/work/detail',
		method: 'GET'
	})
}

// 查看材料详情
export const materialDetailService = (workId) => {
	return http({
		url: '/material/detail',
		method: 'GET',
		data: {
			workId
		}
	})
}

// 提交材料
export const updateMaterialService = (data) => {
	return http({
		url: '/material/update',
		method: 'PUT',
		data: data
	})
}

// 查看项目演示详情
export const projectDetailService = (workId) => {
	return http({
		url: '/project/detail',
		method: 'GET',
		data: {
			workId
		}
	})
}

// 提交项目演示
export const updateProjectService = (data) => {
	return http({
		url: '/project/update',
		method: 'PUT',
		data: data
	})
}

// 查看论文
export const paperDetailService = (workId) => {
	return http({
		url: '/paper/detail',
		method: 'GET',
		data: {
			workId
		}
	})
}

// 提交论文
export const updatePaperService = (data) => {
	return http({
		url: '/paper/update',
		method: 'PUT',
		data: data
	})
}

// 查询导师对应的毕设列表
export const workListService = () => {
	return http({
		url: '/work/list',
		method: 'GET'
	})
}